package com.tanhua.sso.vo;

import com.tanhua.sso.MyApplication;
import com.tanhua.sso.vo.FaceEngineService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.io.File;


@SpringBootTest(classes = MyApplication.class)
@RunWith(SpringJUnit4ClassRunner.class)
public class hongRuan {

    @Autowired
     FaceEngineService faceEngineService;
    @Test
    public void fac(){
        File file=new File("D:\\imgs\\sdd.jpg");
        boolean b = faceEngineService.checkIsPortrait(file);
        System.out.println(b);
    }
}
